package com.storage.mongo;

import java.util.Date;

import com.google.code.morphia.annotations.Embedded;

@Embedded
public class Edonate {

	private int amount;
	private String donatedBy;
	private String communityID;
	private String donatedDate;
	
	public Edonate()
	{
		
	}
	
	public Edonate(int amount,String donatedBy,String communityID)
	{
		setAmount(amount);
		setDonatedBy(donatedBy);
		setCommunityID(communityID);
		setDonatedDate(new Date().toString());
		
	}
	
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}
	public String getDonatedBy() {
		return donatedBy;
	}
	public void setDonatedBy(String donatedBy) {
		this.donatedBy = donatedBy;
	}
	public String getCommunityID() {
		return communityID;
	}
	public void setCommunityID(String communityID) {
		this.communityID = communityID;
	}
	public String getDonatedDate() {
		return donatedDate;
	}
	public void setDonatedDate(String donatedDate) {
		this.donatedDate = donatedDate;
	}
	
}
